package com.kezesong.leasing.service;

import com.kezesong.leasing.controller.request.AddOrderReqBody;
import com.kezesong.leasing.entity.OrderEntity;

import java.util.List;

public interface OrderService {

    List<OrderEntity> getOrderList(int pageSize, int pageIndex);
    OrderEntity getOrder(String orderNo);

    String addOrder(OrderEntity orderEntity);
    int addOrder(AddOrderReqBody addOrderReqBody);

    int modifyOrder(OrderEntity orderEntity);

    int modifyOrderTraceStatus(int orderId, int traceStatus);

    /**
     * 根据本商户订单去调用微信只支付生成预支付订单
     * @param orderNo
     * @return
     */
    String getPrepayNumber(String orderNo,String openId);
}
